package dbreflection.dbanalisys;

import java.util.ArrayList;

/**
 * User: J0k3r
 * Date: 14.12.2006
 * Time: 9:12:29
 */
public class DBTableColumn
{
    private String tableName;
    private String columnName;
    public Class columnType;
    public ArrayList<ExportedKey> exportedKeys = new ArrayList<ExportedKey>();
    public ImportedKey importedKey;

    public DBTableColumn(String tableName,
                         String columnName,
                         Class columnType,
                         ArrayList <ExportedKey> exportedKeys,
                         ImportedKey importedKey)
    {
        this.tableName = tableName;
        this.columnName = columnName;
        this.columnType = columnType;
        if (exportedKeys != null)
            this.exportedKeys = exportedKeys;
        this.importedKey = importedKey;
    }

    public String getTableName()
    {
        return tableName;
    }

    public void setTableName(String tableName)
    {
        this.tableName = tableName;
    }

    public String getColumnName()
    {
        return columnName;
    }

    public void setColumnName(String columnName)
    {
        this.columnName = columnName;
    }

    public Class getColumnType()
    {
        return columnType;
    }

    public void setColumnType(Class columnType)
    {
        this.columnType = columnType;
    }

    public ArrayList<ExportedKey> getExportedKeys()
    {
        return exportedKeys;
    }

    public void addExportedKey(ExportedKey exportedKey)
    {
        this.exportedKeys.add(exportedKey);
    }

    public ImportedKey getImportedKey()
    {
        return importedKey;
    }

    public void setImportedKey(ImportedKey importedKey)
    {
        this.importedKey = importedKey;
    }
}
